package com.web.music.xml;

public interface XmlSchemaConst {
	
	public static final String IDREF = "idref";
	
	/**
	 * Id values are prefixed in XML and general format is:
	 * <id_prefix><long value> 
	 */
	public class IdPrefixes {
		public static final String PERSON_ID_PREFIX = "person_";
		public static final String GENRE_ID_PREFIX = "genre_";
		public static final String ALBUM_ID_PREFIX = "album_";
		public static final String ARTIST_ID_PREFIX = "artist_";
	}
	
	public class Entities {
		public static final String PERSON = "person";
		public static final String GENRE = "genre";
		public static final String ARTIST = "artist";
		public static final String ALBUM = "album";
		
		public static final String GENRES = "genres";
		public static final String ARTISTS = "artists";
		public static final String ALBUMS = "albums";
	}
	
	public class Person {
		public static final String ID = "id";
		public static final String NAME = "name";
		public static final String SURNAME = "surname";
	}
	
	public class Genre {
		public static final String ID = "id";
		public static final String NAME = "name";
	}
	
	public class Album {
		public static final String ID = "id";
		public static final String TITLE = "title";
		public static final String YEAR = "year";
		public static final String GENRE = "genre";
		public static final String ARTIST = "artist";	
	}
	
	public class Artist {
		public static final String ID = "id";
		public static final String TYPE = "type";
		public static final String TYPE_SINGER = "Singer";
		public static final String TYPE_BAND = "Band";
		public static final String NAME = "name";
		public static final String TITLE = "title";
		public static final String SINGER_ATTRIBUTE = "singerAttribute";
		public static final String BAND_ATTRIBUTE = "bandAttribute";
		public static final String GENRE = "genre";
		public static final String PERSON = "person";
		public static final String MEMBER = "member";	
	}
}
